package com.ruoyi.purchase.domain;

import java.util.Date;
import java.util.List;

public class SupplyDetailParams {
    /** 货品批号 */
    private String rawProductBatch;

    /** 订单编号 */
    private String orderNo;

    /** 供货商编码 */
    private String supplierCode;

    /** 货品名称 */
    private String name;

    /** 货源地 */
    private String origin;

    /** 牧场 */
    private String ranch;

    /** 工厂/屠宰场 */
    private String factory;

    /** 饲料 */
    private String feed;

    /** 是否注射疫苗 */
    private String vaccine;

    /** 生产日期 */
    private Date productionDate;

    /** 保质期 */
    private Long shelfLife;

    /** 备注 */
    private String remarks;

    /** 货源详情中每个货品的详细信息 */
    private List<RawProductDetail> rawProductDetailList;

    public SupplyDetailParams(SupplyDetail supplyDetail,List<RawProductDetail> rawProductDetailList) {
        this.rawProductDetailList = rawProductDetailList;
        if(supplyDetail!=null){
            this.rawProductBatch = supplyDetail.getRawProductBatch();
            this.orderNo = supplyDetail.getOrderNo();
            this.supplierCode = supplyDetail.getSupplierCode();
            this.name = supplyDetail.getName();
            this.origin = supplyDetail.getOrigin();
            this.ranch = supplyDetail.getRanch();
            this.factory = supplyDetail.getFactory();
            this.feed = supplyDetail.getFeed();
            this.vaccine = supplyDetail.getVaccine();
            this.productionDate = supplyDetail.getProductionDate();
            this.shelfLife = supplyDetail.getShelfLife();
            this.remarks = supplyDetail.getRemarks();
        }
    }

    public String getRawProductBatch() {
        return rawProductBatch;
    }

    public void setRawProductBatch(String rawProductBatch) {
        this.rawProductBatch = rawProductBatch;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRanch() {
        return ranch;
    }

    public void setRanch(String ranch) {
        this.ranch = ranch;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getFeed() {
        return feed;
    }

    public void setFeed(String feed) {
        this.feed = feed;
    }

    public String getVaccine() {
        return vaccine;
    }

    public void setVaccine(String vaccine) {
        this.vaccine = vaccine;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Long getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(Long shelfLife) {
        this.shelfLife = shelfLife;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public List<RawProductDetail> getRawProductDetailList() {
        return rawProductDetailList;
    }

    public void setRawProductDetailList(List<RawProductDetail> rawProductDetailList) {
        this.rawProductDetailList = rawProductDetailList;
    }

    @Override
    public String toString() {
        return "SupplyDetailParams{" +
                "rawProductBatch='" + rawProductBatch + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", supplierCode='" + supplierCode + '\'' +
                ", name='" + name + '\'' +
                ", origin='" + origin + '\'' +
                ", productionDate=" + productionDate +
                ", shelfLife=" + shelfLife +
                ", remarks='" + remarks + '\'' +
                ", rawProductDetailList=" + rawProductDetailList +
                '}';
    }
}
